package com.meixiang.activity.account.myMoneyManagement;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.meixiang.R;
import com.meixiang.main.BaseActivity;
import com.meixiang.view.TitleView;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * @author yinsujun  Created at 2016/5/6 18:02
 *         我的理财详情 1回款中 2已完成
 */
public class MoneyManagementDetailActivity extends BaseActivity {
    @Bind(R.id.title)
    TitleView title;
    @Bind(R.id.management_detail_tv_status)
    TextView tvStatus;
    @Bind(R.id.management_detail_tv_investment_time)
    TextView tvInvestmentTime;
    @Bind(R.id.management_detail_tv_returned_time)
    TextView tvReturnedTime;
    @Bind(R.id.management_detail_iv_status)
    ImageView ivStatus;
    @Bind(R.id.money_management_tv_investment_money)
    TextView tvInvestmentMoney;
    @Bind(R.id.money_management_tv_investment_earnings)
    TextView tvInvestmentEarnings;
    @Bind(R.id.money_management_tv_terminal_yield)
    TextView tvTerminalYield;
    @Bind(R.id.money_management_tv_investment_limit)
    TextView tvInvestmentLimit;
    @Bind(R.id.money_management_tv_investment_type)
    TextView tvInvestmentType;
    @Bind(R.id.money_management_tv_repayment)
    TextView tvRepayment;
    @Bind(R.id.money_management_tv_product_detail)
    TextView tvProductDetail;
    @Bind(R.id.money_management_tv_investment_earnings_one)
    TextView tvInvestmentEarningsOne;
    private String type;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_money_management_detail);
        ButterKnife.bind(this);
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void initTitle() {
        type = getIntent().getStringExtra("type");
        if (type.equals("1")) {
            setTitle("回款详情");
            tvStatus.setText("投资回款中...");
            tvReturnedTime.setText("预期回款：无");
            ivStatus.setImageResource(R.mipmap.ic_financial_wait);
            tvInvestmentEarningsOne.setText("预期收益(元)");
        } else if (type.equals("2")) {
            setTitle("投资完成");
            tvStatus.setText("投资已完成");
            tvReturnedTime.setText("回款日期：无");
            ivStatus.setImageResource(R.mipmap.ic_financial_done);
            tvInvestmentEarningsOne.setText("收益(元)");
        }

    }

    @Override
    protected void initView() {

    }

    @Override
    protected void setData() {

    }

    @Override
    public void onClick(View v) {

    }
}
